package com.example.book_shop_java.dao;

import com.example.book_shop_java.bean.Notices;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface NoticesDao {
    public int addNotices(@Param("topic") String topic, @Param("username") String username, @Param("timeOut") String timeOut, @Param("context") String context);
    public int deleteNotices(int id);
    public int editNotices(int id,@Param("topic") String topic,@Param("context") String context);
    public List<Notices> getAllNotices(@Param("context") String context);
}
